home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000227_Petri_member@newsguy.com_Tue Apr 20 10:45:50 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn
  2. From: Petri <Petri_member@newsguy.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Running kermit from within glftpd
  5. Date: 20 Apr 2004 07:02:27 -0700
  6. Organization: Newsguy News Service [http://newsguy.com]
  7. Lines: 55
  8. Message-ID: <c63ahj022do@drn.newsguy.com>
  9. References: <c61fv402ovm@drn.newsguy.com> <m1y8or8iss.gnus@usa.net>
  10. NNTP-Posting-Host: p-387.newsdawg.com
  11. X-Newsreader: Direct Read News 4.20
  12. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14944
  13.  
  14. In article <m1y8or8iss.gnus@usa.net>, those who know me have no need of my name
  15. says...
  16. >> glftpd changes root into its' own folder, which means I have to copy
  17. >> some dependencies.
  18.  
  19. > use ldd on kermit, then on each of the files it names, and continue
  20. > to do so until you've tested everything that would be used.
  21. > copy all those files into your jail.
  22.  
  23. There is no easy way of compiling a static Kermit, or getting rid of Kerberos,
  24. so I am stuck with trying to copy all necessary dependencies.
  25. I have in fact copied all libraries that are listed by 'ldd kermit', one of
  26. which is /usr/kerberos/lib/libkrb4.so.2.
  27. I have copied the whole directories of /usr/kerberos and /lib/tls, the rest of
  28. the files I copied individually, when they didn't already exist in the target
  29. directory.
  30. Yet still Kermit complains about that same file:
  31. ---8<---
  32. /glftpd>chroot /glftpd bin/kermit 
  33. bin/kermit: error while loading shared libraries: libkrb4.so.2: cannot open
  34. shared object file: No such file or directory
  35. ---8<---
  36.  
  37. Is there something else I must do?
  38. I have looked at the environment variables with set and setenv, to see if there
  39. is something there that needs changing, but there was nothing I could spot.
  40.  
  41. This is the output of my 'ldd kermit':
  42. ---8<---
  43. libm.so.6 => /lib/tls/libm.so.6 (0x40024000)
  44. libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40047000)
  45. libtermcap.so.2 => /lib/libtermcap.so.2 (0x40086000)
  46. libkrb4.so.2 => /usr/kerberos/lib/libkrb4.so.2 (0x4008a000)
  47. libssl.so.4 => /lib/libssl.so.4 (0x4009f000)
  48. libcrypto.so.4 => /lib/libcrypto.so.4 (0x400d4000)
  49. libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x401c5000)
  50. libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x401d9000)
  51. libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x40237000)
  52. libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x40239000)
  53. libcrypt.so.1 => /lib/libcrypt.so.1 (0x40249000)
  54. libresolv.so.2 => /lib/libresolv.so.2 (0x40276000)
  55. libpam.so.0 => /lib/libpam.so.0 (0x40288000)
  56. libdl.so.2 => /lib/libdl.so.2 (0x40291000)
  57. libz.so.1 => /usr/lib/libz.so.1 (0x40295000)
  58. libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
  59. libdes425.so.3 => /usr/kerberos/lib/libdes425.so.3 (0x402a3000)
  60. /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
  61. ---8<---
  62.  
  63. I am not so experienced in Linux matters, so if you have any tips, I'd really
  64. appreciate it. :)
  65.  
  66.  
  67. Petri
  68.